package cn.hnucm.searchesservice.dao;

import cn.hnucm.searchesservice.entity.TbLog;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Description:
 * @author: chenjintao
 * @Date: 2021/12/20 23:21
 */
@Mapper
public interface TbLogDao {

    //获取所有的日志
    List<TbLog> getAllLog();
    //增加一条日志
    Boolean addLog(TbLog tbLog);
    //通过日志Id删除一条日志
    Boolean deleteLogById(Integer logId);
    //通过日志Id查询一条日志
    TbLog selectLogById(Integer logId);
    //批量查询日志,根据多层因素
    List<TbLog> selectLog(Integer userId,String operation,String method,
                          Integer pageFrom,Integer pageSize);
}
